package wyj;

import java.util.Scanner;

class Main1{
    public static void main(String[] args){

                Scanner in = new Scanner(System.in);

                int js = 0;

                int os = 0;

                int a  = in.nextInt();

                while (a!=-1) {

                    if(a%2==0){os++;}

                    else if (a%2==1){js++;}

                    a = in.nextInt();

                }

                System.out.println(js+" "+os);

            }

        }




